package com.example.newbilityblog.blog.service.mapper;

import com.example.newbilityblog.blog.api.response.BlogResponse;
import com.example.newbilityblog.blog.domain.entity.Blog;
import com.example.newbilityblog.blog.infrastructure.entity.BlogEntity;
import com.example.newbilityblog.utils.MarkDownUtil;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.MappingTarget;
import org.mapstruct.Named;
import org.mapstruct.Qualifier;

@Mapper(componentModel = "spring")
public interface BlogMapper {
    BlogResponse toBlogResponse(BlogEntity entity);

    Blog toBlog(BlogEntity entity);

    BlogEntity toBlogEntity(Blog blog);

    void toBlogEntity(Blog blog, @MappingTarget BlogEntity blogEntity);

}
